package com.avo.ramcache.persist;

import com.avo.ramcache.config.IEntity;
import com.avo.ramcache.orm.Accessor;

import java.util.Map;

public interface Persister {

    void initialize(String name, Accessor accessor, String config);

    void put(Element element);

    void addListener(Class<? extends IEntity<?>> clz, Listener listener);

    Listener getListener(Class<? extends IEntity<?>> entity);

    void shutdown();

    Map<String, String> getInfo();
}
